<table class="table table-condensed">
  <thead>
	<tr>
		<th>#</th>
		<th>Instansi</th>
		<th>Alamat</th>
		<th>Email</th>
		<th>No. Tlp</th>
		<th>Website</th>
		<th></th>
	</tr>
  </thead>
  <tbody>
	<?php 
		if(count($list)>0){
			$i = 1; 
			foreach ($list as $row) {
	?>
	<tr class="hover">
		<td width="30"><?php echo $i++ ?></td>
		<td><?php echo $row->instansi;?></td> 
		<td><?php echo substr($row->alamat,0,35);?>...</td> 
		<td><?php echo $row->email;?></td> 
		<td><?php echo $row->no_tlp;?></td> 
		<td><?php echo $row->site;?></td> 
		<td class="text-right">											
			<a class="editorLink" data-reveal-id="delModal" data-reveal nama="<?php echo $row->instansi; ?>" hpid="<?php echo $row->id_m_instansi;?>"><span class="glyphicon glyphicon-floppy-remove"></span> Hapus</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a onclick="edit_instansi('<?php echo $row->id_m_instansi;?>')" class="editorLink" data-reveal-id="editModal" data-reveal><span class="glyphicon glyphicon-edit"></span> Edit</a></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a onclick="detail_instansi('<?php echo $row->id_m_instansi;?>')" class="editorLink" data-reveal-id="detailModal" data-reveal><span class="glyphicon glyphicon-file"></span> Detail</a>
		</td>
	</tr>
	<?php
			}
		}else{
	?>
	<tr>
		<td colspan="7"><center>Belum ada data master Instansi</center></td>
	</tr>
	<?php
		}
	?>
  </tbody>
</table>